package com.cloud.bssp.nio.selector.read;

import java.io.IOException;
import java.net.Socket;

/**
 * @description： TODO
 * @author：weirx
 * @date：2021/11/4 14:12
 * @version：3.0
 */
public class ClientTest {

    public static void main(String[] args) {
        try (Socket socket = new Socket("localhost", 8080)) {
            System.out.println(socket);
            socket.getOutputStream().write("world".getBytes());
            System.in.read();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
